package com.naiterui.ehp.bs.ds.modules.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.ds.modules.goods.entity.Warehouse;
import com.naiterui.ehp.bs.ds.modules.goods.vo.WarehouseManageVO;
import com.naiterui.ehp.bs.ds.modules.goods.vo.WarehouseVO;

public interface IWarehouseService extends IService<Warehouse> {
    /**
     * 通过仓库ID获取登录账户
     */
    String getUserNameByWarehouseId(Long warehouseId);

    /**
     * 保存更新管理用户密码
     */
    void updateManage(Long warehouseId, WarehouseManageVO warehouseManage) throws BusinessException;

    void updateStatus(Long warehouseId, Integer status);

    WarehouseVO getWarehouse();
}
